package com.iot.service;

import com.iot.pojo.MTwork;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

public interface TworkService extends BaseService<MTwork> {
    public List<Map<String,Object>> fetchByPage(Map<String, Object> map) throws Exception;

    public List<Map<String,Object>> getWorkByEmpId(Map<String, Object> map) throws Exception;
    public List<Map<String,Object>> getWorkByWorkId(Map<String, Object> map);
    public void saveWorkZd(Map<String, Object> map);

    public  void saveWorkJd(Map<String, Object> map) throws Exception;

    public void SaveWorkSP(Map<String, Object> map) throws Exception;
    @Transactional(rollbackFor=Exception.class)
    public void SaveWorkZdSP(Map<String, Object> map) throws Exception;


    public  Map<String ,Object> initList(int appId);
    public  Map<String ,Object> initEdit(int appId);

}
